security {

	// see DefaultSecurityConfig.groovy for all settable/overridable properties

	active = true

        useRequestMapDomainClass = false
	loginUserDomainClass = "User"
	authorityDomainClass = "Role"

        requestMapString = '''
            CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
            PATTERN_TYPE_APACHE_ANT

            /login/**=IS_AUTHENTICATED_FULLY,IS_AUTHENTICATED_REMEMBERED,IS_AUTHENTICATED_ANONYMOUSLY
            /logout/**=IS_AUTHENTICATED_FULLY,IS_AUTHENTICATED_REMEMBERED,IS_AUTHENTICATED_ANONYMOUSLY
            /user/list=ROLE_ADMIN
            /user/delete=ROLE_ADMIN

            /notas/delete/**=ROLE_ADMIN
            /notas/edit/**=ROLE_ADMIN
            /notas/create=ROLE_USER,ROLE_ADMIN
            /*=IS_AUTHENTICATED_ANONYMOUSLY,IS_AUTHENTICATED_FULLY,IS_AUTHENTICATED_REMEMBERED
            /**=IS_AUTHENTICATED_FULLY,IS_AUTHENTICATED_REMEMBERED
        '''

}
